macOS brew install fix (#986)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Tue, 17 Jan 2023 20:14:33 +0000 (13:14 -0700)
committerGitHub <noreply@github.com>
Tue, 17 Jan 2023 20:14:33 +0000 (13:14 -0700)
* optimize brew install time.

* try skipping brew update to speed up install

* is jing-trang really the problem?

* skip relink step

* avoid brew python link issues and dependency upgrades.

This cuts the brew install time down about 10x.

.github/workflows/macos.yml

index 7de263fee833f112ca523f733bcd90207dc0cb7f..cdf275c27c83dae28fe1b627ad6adac769397a73 100644 (file)
@@ -61,17 +61,13 @@ jobs:
     - name: Brew install
       if: matrix.GENERATOR == 'Ninja'
       run: |
-        # homebrew fails to update python from 3.9 to 3.10 due
-        # to another unlinking failure. See hack at brew upgrade
-        rm -f /usr/local/bin/2to3 /usr/local/bin/idle3 \
-          /usr/local/bin/idle3 /usr/local/bin/pydoc3 \
-          /usr/local/bin/python3 /usr/local/bin/python3-config
-        brew update
-        # From https://github.com/actions/runner-images/issues/6817#issuecomment-1363382175
-        # a topic that's flaming right now, though this is a recurring
-        # problem as described in
-        # https://github.com/actions/runner-images/issues/4020
-        brew upgrade || true
+        # update/upgrade is causing issues
+        # https://github.com/orgs/Homebrew/discussions/3895
+        # https://github.com/actions/setup-python/issues/577
+        # https://github.com/actions/runner-images/issues/6459
+        # https://github.com/actions/runner-images/issues/6507
+        # https://github.com/actions/runner-images/issues/2322
+        # brew update # skip update for now to avoid link issues AND many slow dependency upGRADES.
         brew install ninja
         brew install docbook docbook-xsl fop gnu-sed
         brew install jing-trang